package com.zyq.mapper;

import com.zyq.model.entity.Field;
import com.zyq.model.entity.HealthAssessment;
import com.zyq.model.response.FieldResponse;

import java.util.List;

/**
 * 健康评估表Mapper接口
 *
 * @author zyq
 * @date 2021-12-08
 */
public interface HealthAssessmentMapper
{
    /**
     * 查询健康评估表
     *
     * @param id 健康评估表ID
     * @return 健康评估表
     */
    public HealthAssessment selectHealthAssessmentById(Long id);

    /**
     * 查询健康评估表列表
     *
     * @return 健康评估表集合
     */
    public List<HealthAssessment> selectHealthAssessmentList(Long fieldId);

    /**
     * 新增健康评估表
     *
     * @param healthAssessment 健康评估表
     * @return 结果
     */
    public int insertHealthAssessment(HealthAssessment healthAssessment);

    /**
     * 修改健康评估表
     *
     * @param healthAssessment 健康评估表
     * @return 结果
     */
    public int updateHealthAssessment(HealthAssessment healthAssessment);

    /**
     * 删除健康评估表
     *
     * @param id 健康评估表ID
     * @return 结果
     */
    public int deleteHealthAssessmentById(Long id);

    /**
     * 批量删除健康评估表
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteHealthAssessmentByIds(Long[] ids);

    /**
     * 查询字段信息
     * @return
     */
    List<Field> selectFieldList();


    /**
     * 用户获取测评表
     * @return
     */
    List<FieldResponse> selectListAll();

    int updateField(Field field);

    int insertField(Field field);

    int removeField(Long[] ids);
}
